package com.lxf.cloudscheduled;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling //定时任务开启
@EnableAsync //开启异步线程
@EnableFeignClients(basePackages = "com.lxf.cloudfeign.client") //需要扫描到fegin-api的路径
public class CloudScheduledApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudScheduledApplication.class, args);
    }

}
